package com.bw.entity;

import lombok.*;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.*;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private Integer id;

    @NotBlank(message =  "用户名不为空")
    private String name;

    @NotBlank(message =  "密码不为空")
    private String password;

    private String salt;

    private String nickName;

    private String avatarUrl;

    private Integer giteeId;


//    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    private Date birthday;
}
